package util.comparator;

import java.text.Collator;
import java.util.Comparator;

import data_stuct.Entry;

/**
 * implementation of comparator by number of UnitA
 * 
 * @author Majid Mallis
 * 
 */
public class ComparatorByUnitA implements Comparator<Entry> {

	public ComparatorByUnitA() {
		super();
	}

	public int compare(Entry e1, Entry e2) {
		return Collator.getInstance().compare(e1.UnitA, e2.UnitA);
	}

}